package com.yixun.dy.service.impl;

import com.yixun.dy.entity.YxProTransport;
import com.yixun.dy.service.YxProTransportService;
import com.yixun.entity.YxUser;
import com.yixun.mapper.DiQuMapper;
import com.yixun.mapper.YxProTransportMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

/**
*
*/
@Service
public class YxProTransportServiceImpl implements YxProTransportService{

    @Autowired
    private  YxProTransportMapper yxProTransportMapper;

    @Autowired
    private DiQuMapper diQuMapper;

    @Override
    public List<YxProTransport> getListByPage(Map<String, String> map) {
        return yxProTransportMapper.getYxProTransportList(map);
    }
    @Override
    public Integer getTranCount(String dy_type) {
        return yxProTransportMapper.getTranCount(dy_type);
    }

    @Override
    public YxProTransport getYxProTransport(String id) {
        return yxProTransportMapper.getYxProTransport(id);
    }

    @Override
    public Integer insertYxProTransport(YxUser user, Map<String, String> map) {
        map.put("add_User",user.getUser_id());
        map.put("add_time",user.getUser_id());
        return  yxProTransportMapper.insertYxProTransport(map);
    }
    @Override
    public Integer delTran(Map<String, String> map) {
        return yxProTransportMapper.delTran(map);
    }
}
